#!/mingw64/bin/python
import sys
import os
from PyQt5.QtCore import QDir, QFileInfo, QStandardPaths, Qt, QUrl,QSettings
path='HKEY_CURRENT_USER\\Environment'
setting2 = QSettings(path, QSettings.NativeFormat)
all = sys.stdin.read()
lines=all.split("\n")
for l in lines:
    fs=l.split("=")
    if len(fs)==2:
        logging.info(fs)
        setting2.setValue(fs[0],fs[1])
